//
//  QDOriginalTitleTableCell.swift
//  QDMetroClient
//
//  Created by YueWen on 2019/3/1.
//  Copyright © 2019 YueWen. All rights reserved.
//

import UIKit

/// 用于常见问题的样式，将于后期版本移除
final class QDOriginalTitleTableCell: NWTableViewCell {

    /// 用于存放小图标
    let headerImageView = UIImageView()
    
    /// 用于显示文本标题
    let titleLabel = UILabel()
    
    
    override func buildView() {
        super.buildView()
        
        headerImageView.backgroundColor = .white
        headerImageView.contentMode = .scaleAspectFit
        headerImageView.clipsToBounds = true
        headerImageView.image = "uc_arrow_right".namedImage
        
        titleLabel.text = "乘车码支付方式申请解约多长时间生效?"
        titleLabel.font = Font.regular.font(size: 15)
        titleLabel.textColor = QDColors.black
        
        bottomLineInset.left = 20
        bottomLineInset.right = 20
        bottomLineHeight = 0.5
        bottomLineView.backgroundColor = #colorLiteral(red: 0.9294117647, green: 0.9411764706, blue: 0.9333333333, alpha: 1)
        
        contentView.addSubview(headerImageView)
        contentView.addSubview(titleLabel)
        
        headerImageView.snp.makeConstraints { (make) in
            make.centerY.equalToSuperview()
//            make.left.equalToSuperview().offset(20)
            make.width.height.equalTo(17)
            make.right.equalToSuperview().inset(20)
        }
        
        titleLabel.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(20)
            make.centerY.equalToSuperview()
            make.right.equalToSuperview().inset(10)
        }
    }
}
